package net.uhuijia.user.usermall.clientservice;


import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import net.uhuijia.user.usermall.persistence.model.UserMall;




/**
 * 
 *一个实现了FallbackFactory接口的类TestClientServiceFallbackFactory
 * @author 许小宝
 * @date 2018年7月25日
 */
@FeignClient(value = "UHUIJIA-USERS-PROVIDER-8002",fallbackFactory=UserMallClientServiceFallbackFactory.class)
public interface UserMallClientService
{
	/**
	 * 验证用户的token和device，如果验证通过则返回用户基本信息，不通过则返回空
	 * @param device
	 * @param token
	 * @return
	 */
	@RequestMapping(value = "/client/usermall/auth/{device}/{token}")
    public UserMall auth( @PathVariable("device")String device, @PathVariable("token")String token );
	

}
